package student.aistar.day06;

public class TestDog {
    public static void main(String[] args) {
        //创建狗对象
        Dog dog = new Dog();
        //子类是可以工向父类中所有的非私有得成员
        //dog.setName("小狗");
        dog.setLoyalty(1100);

        System.out.println(dog.toString());


    }
}
